package com.media.themovieworld.util;

import android.content.Context;
import android.telephony.TelephonyManager;

import com.media.themovieworld.model.DeviceInfoModel;
import com.media.themovieworld.util.network.util.AndroidVersionUtils;

public class DeviceUtil {

	public static DeviceInfoModel getDeviceInfo(Context context){
		DeviceInfoModel modelInfo = new DeviceInfoModel();
		TelephonyManager telephonyManager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
		modelInfo.deviceEmei = telephonyManager.getDeviceId();
//		modelInfo.mobile = telephonyManager.getLine1Number();
		modelInfo.mobile = "0978898994";
		modelInfo.OS = System.getProperty("os.version");
		modelInfo.currentVersion =  String.valueOf(AndroidVersionUtils.getSdkVersion());
		modelInfo.versionId =  telephonyManager.getDeviceSoftwareVersion();
		modelInfo.pushRegister = "1234";
		return modelInfo;
	}
}
